/* 顶部导航，页面标题+返回上一页，组件 */
<template>
  <el-page-header @back="goBack" :content="title"> </el-page-header>
</template>

<script>
export default {
  props: {
    title: String,
  },
  methods: {
    //返回上一页
    goBack() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped></style>
